package com.ruoyi.project.system.domain;

import cn.hutool.crypto.SecureUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.jna.platform.win32.LMAccess;
import org.apache.catalina.security.SecurityUtil;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 User
 * 
 * @author ruoyi
 * @date 2020-05-16
 */
@TableName(value = "USER")
public class User extends Object
{
    public User(){

    }

    public User(String phone){
        this.phone = phone;
        this.password = SecureUtil.md5("12345678");
        this.damon = 0L;
        this.nick = "u"+phone;
        this.name = "m@"+phone;
    }



    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long uid;

    /** $column.columnComment */
    @Excel(name = "${nick}", readConverterExp = "$column.readConverterExp()")
    private String nick;

    /** $column.columnComment */
    @Excel(name = "${avatar}", readConverterExp = "$column.readConverterExp()")
    private String avatar;

    /** $column.columnComment */
    @Excel(name = "${thumb}", readConverterExp = "$column.readConverterExp()")
    private String thumb;

    /** $column.columnComment */
    @Excel(name = "${sound}", readConverterExp = "$column.readConverterExp()")
    private String sound;

    /** $column.columnComment */
    @Excel(name = "${name}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** 钻石数 */
    @Excel(name = "${sex}", readConverterExp = "$column.readConverterExp()")
    private int sex;

    /** $column.columnComment */
    @Excel(name = "${phone}", readConverterExp = "$column.readConverterExp()")
    private String phone;

    /** $column.columnComment */
    @Excel(name = "${password}", readConverterExp = "$column.readConverterExp()")
    private String password;

    /** 钻石数 */
    @Excel(name = "${damon}", readConverterExp = "$column.readConverterExp()")
    private Long damon;


    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setNick(String nick) 
    {
        this.nick = nick;
    }

    public String getNick() 
    {
        return nick;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getDamon() {
        return damon;
    }

    public void setDamon(Long damon) {
        this.damon = damon;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uid", getUid())
            .append("nick", getNick())
            .append("name", getName())
            .append("password", getPassword())
            .toString();
    }
}
